<?php

class Welcome extends Controller {

	function Welcome()
	{
		parent::Controller();	
	}
	
	function index()
	{
		
		$this->load->model('NewsModel');
		$this->load->model('GoodStudentModel');
		$this->load->model('studenthalloffamemodel');
	    $this->load->model('filemanagementmodel');
	    
	    $data['news'] = $this->NewsModel->getTopTenNews();
	    $data['feedback'] = $this->GoodStudentModel->getFeedBack();
		$data['hall'] = $this->studenthalloffamemodel->getTop();
		$data['banner'] = $this->filemanagementmodel->getByPostion('banner');
		
	    $data['header_tel'] = $this->filemanagementmodel->getByPostion('header_tel');
	    $data['footer_address'] = $this->filemanagementmodel->getByPostion('footer_add1');
		
		$this->load->view('f_header', $data);
		$this->load->view('f_welcome', $data);
		$this->load->view('f_footer', $data);
	}
}

?>